package com.fanbuchi.fukua.manager;

import com.baidu.location.BDLocation;

import com.fanbuchi.fukua.entity.enums.location.LocationStat;

/**
 * Created by killerzhangsan on 2015/5/19.
 * @title 位置管理
 */
public class LocationManager {
    private static Integer stat= LocationStat.stadylocation;

    /**
     * @title 更新当前定位状态
     * @param stat 状态码
     */
    public static void setStat(Integer stat) {
        LocationManager.stat = stat;
    }

    static LocationManager mLocationManager;
    public static LocationManager getInstance() {
        if (mLocationManager==null){
            mLocationManager = new LocationManager();
        }
        return mLocationManager;
    }

    /**
     * @title 最新的地址
     * @return
     */
    public  static final BDLocation getLastLocation(){
        BDLocation _bdlocation=null;
        return _bdlocation;
    }


    /**
     * @title 定位我的最新位置
     */
    public  static final void startMyLocation(){
        BDLocation _bdlocation=null;

    }

    /**
     * @title 停止定位我的位置
     */
    public  static final void stopMyLocation(){
        BDLocation _bdlocation=null;
    }

    /**
     * @title 是否正在定位
     * @return
     */
    public  static final boolean isLocationing(){

        return true;
    }

    /**
     * @title 是否正在后台定位
     * @return
     */
    public  static final boolean isBackgroundLocationing(){
        return true;
    }



}
